package com.kotlin.demo.类

enum class WeekDemo {
    Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
}

enum class Limbs(var limbsName: String) {
    leftHand("左手"),
    rightHand("右手"),
    leftFoot("左脚"),
    rightFoot("左脚");

    fun show() = "info:$limbsName"

    fun update(name:String){
        limbsName = name
    }
}

fun main() {
    println(WeekDemo.Monday)

    println(WeekDemo.Tuesday is WeekDemo)


    println(Limbs.leftHand.show())
    println(Limbs.leftHand.update("zuosdjl"))
    println(Limbs.leftHand.show())
}